package com.panda.pandawash.view;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.panda.pandawash.R;


public class LoadingDialog extends Dialog {  
    private TextView tv;  
    private String contentString;
    public LoadingDialog(Context context, String showcontent) {  
        super(context, R.style.loadingDialogStyle);
        contentString = showcontent;
    }  
  
    private LoadingDialog(Context context, int theme) {  
        super(context, theme);  
    }  
  
    @Override  
    protected void onCreate(Bundle savedInstanceState) {  
        super.onCreate(savedInstanceState);  
        setContentView(R.layout.dialog_loading);  
        tv = (TextView)this.findViewById(R.id.tv);  
        tv.setText(contentString);  
        LinearLayout linearLayout = (LinearLayout)this.findViewById(R.id.LinearLayout);
    }  
}  